﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200052B RID: 1323
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FeverTimeActivityData : IMessage<FeverTimeActivityData>, IMessage, IEquatable<FeverTimeActivityData>, IDeepCloneable<FeverTimeActivityData>, IBufferMessage
	{
		// Token: 0x17001116 RID: 4374
		// (get) Token: 0x06003BC1 RID: 15297 RVA: 0x000A447F File Offset: 0x000A267F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FeverTimeActivityData> Parser
		{
			get
			{
				return FeverTimeActivityData._parser;
			}
		}

		// Token: 0x17001117 RID: 4375
		// (get) Token: 0x06003BC2 RID: 15298 RVA: 0x000A4486 File Offset: 0x000A2686
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FeverTimeActivityDataReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001118 RID: 4376
		// (get) Token: 0x06003BC3 RID: 15299 RVA: 0x000A4498 File Offset: 0x000A2698
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FeverTimeActivityData.Descriptor;
			}
		}

		// Token: 0x06003BC4 RID: 15300 RVA: 0x000A449F File Offset: 0x000A269F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FeverTimeActivityData()
		{
		}

		// Token: 0x06003BC5 RID: 15301 RVA: 0x000A44A7 File Offset: 0x000A26A7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FeverTimeActivityData(FeverTimeActivityData other) : this()
		{
			this.feverTimeRank_ = other.feverTimeRank_;
			this.feverId_ = other.feverId_;
			this.remainingCycles_ = other.remainingCycles_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003BC6 RID: 15302 RVA: 0x000A44E4 File Offset: 0x000A26E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FeverTimeActivityData Clone()
		{
			return new FeverTimeActivityData(this);
		}

		// Token: 0x17001119 RID: 4377
		// (get) Token: 0x06003BC7 RID: 15303 RVA: 0x000A44EC File Offset: 0x000A26EC
		// (set) Token: 0x06003BC8 RID: 15304 RVA: 0x000A44F4 File Offset: 0x000A26F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FeverTimeBattleRank FeverTimeRank
		{
			get
			{
				return this.feverTimeRank_;
			}
			set
			{
				this.feverTimeRank_ = value;
			}
		}

		// Token: 0x1700111A RID: 4378
		// (get) Token: 0x06003BC9 RID: 15305 RVA: 0x000A44FD File Offset: 0x000A26FD
		// (set) Token: 0x06003BCA RID: 15306 RVA: 0x000A4505 File Offset: 0x000A2705
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint FeverId
		{
			get
			{
				return this.feverId_;
			}
			set
			{
				this.feverId_ = value;
			}
		}

		// Token: 0x1700111B RID: 4379
		// (get) Token: 0x06003BCB RID: 15307 RVA: 0x000A450E File Offset: 0x000A270E
		// (set) Token: 0x06003BCC RID: 15308 RVA: 0x000A4516 File Offset: 0x000A2716
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RemainingCycles
		{
			get
			{
				return this.remainingCycles_;
			}
			set
			{
				this.remainingCycles_ = value;
			}
		}

		// Token: 0x06003BCD RID: 15309 RVA: 0x000A451F File Offset: 0x000A271F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FeverTimeActivityData);
		}

		// Token: 0x06003BCE RID: 15310 RVA: 0x000A4530 File Offset: 0x000A2730
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FeverTimeActivityData other)
		{
			return other != null && (other == this || (this.FeverTimeRank == other.FeverTimeRank && this.FeverId == other.FeverId && this.RemainingCycles == other.RemainingCycles && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003BCF RID: 15311 RVA: 0x000A458C File Offset: 0x000A278C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.FeverTimeRank != FeverTimeBattleRank.C)
			{
				num ^= this.FeverTimeRank.GetHashCode();
			}
			if (this.FeverId != 0U)
			{
				num ^= this.FeverId.GetHashCode();
			}
			if (this.RemainingCycles != 0U)
			{
				num ^= this.RemainingCycles.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003BD0 RID: 15312 RVA: 0x000A4603 File Offset: 0x000A2803
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003BD1 RID: 15313 RVA: 0x000A460B File Offset: 0x000A280B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003BD2 RID: 15314 RVA: 0x000A4614 File Offset: 0x000A2814
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.FeverId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.FeverId);
			}
			if (this.RemainingCycles != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.RemainingCycles);
			}
			if (this.FeverTimeRank != FeverTimeBattleRank.C)
			{
				output.WriteRawTag(40);
				output.WriteEnum((int)this.FeverTimeRank);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003BD3 RID: 15315 RVA: 0x000A4688 File Offset: 0x000A2888
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.FeverTimeRank != FeverTimeBattleRank.C)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.FeverTimeRank);
			}
			if (this.FeverId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.FeverId);
			}
			if (this.RemainingCycles != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RemainingCycles);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003BD4 RID: 15316 RVA: 0x000A46F8 File Offset: 0x000A28F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FeverTimeActivityData other)
		{
			if (other == null)
			{
				return;
			}
			if (other.FeverTimeRank != FeverTimeBattleRank.C)
			{
				this.FeverTimeRank = other.FeverTimeRank;
			}
			if (other.FeverId != 0U)
			{
				this.FeverId = other.FeverId;
			}
			if (other.RemainingCycles != 0U)
			{
				this.RemainingCycles = other.RemainingCycles;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003BD5 RID: 15317 RVA: 0x000A475C File Offset: 0x000A295C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003BD6 RID: 15318 RVA: 0x000A4768 File Offset: 0x000A2968
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 24U)
					{
						if (num != 40U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.FeverTimeRank = (FeverTimeBattleRank)input.ReadEnum();
						}
					}
					else
					{
						this.RemainingCycles = input.ReadUInt32();
					}
				}
				else
				{
					this.FeverId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040017AF RID: 6063
		private static readonly MessageParser<FeverTimeActivityData> _parser = new MessageParser<FeverTimeActivityData>(() => new FeverTimeActivityData());

		// Token: 0x040017B0 RID: 6064
		private UnknownFieldSet _unknownFields;

		// Token: 0x040017B1 RID: 6065
		public const int FeverTimeRankFieldNumber = 5;

		// Token: 0x040017B2 RID: 6066
		private FeverTimeBattleRank feverTimeRank_;

		// Token: 0x040017B3 RID: 6067
		public const int FeverIdFieldNumber = 1;

		// Token: 0x040017B4 RID: 6068
		private uint feverId_;

		// Token: 0x040017B5 RID: 6069
		public const int RemainingCyclesFieldNumber = 3;

		// Token: 0x040017B6 RID: 6070
		private uint remainingCycles_;
	}
}
